package com.yx.changdao.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.yx.changdao.common.annotation.AutoFill;
import com.yx.changdao.common.utils.SysUtils;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;


@TableName(ProblemBeatback.TABLE_NAME)
@Setter
@Getter
public class ProblemBeatback implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据库名
     */
    public static final String TABLE_NAME = "problem_beatback";

    /**
     * 主键id
     */
    public static final String ID = "id";
    /**
     * 问题id
     */
    public static final String PROBLEM_INFO_ID = "problem_info_id";
    /**
     * 打回说明内容
     */
    public static final String BEATBACK_CONTENT = "beatback_content";

    /**
     * 上报时间
     */
    public static final String REPORT_TIME = "report_time";
    /**
     * 本次上报审批状态(2-通过 3-打回)
     */
    public static final String report_status = "report_status";

    /**
     * 创建人id
     */
    public static final String CREATE_BY = "create_by";
    /**
     * 创建人姓名
     */
    public static final String CREATE_BY_NAME = "create_by_name";
    /**
     * 创建时间
     */
    public static final String CREATE_TIME = "create_time";


    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 问题id
     */
    private Integer problemInfoId;
    /**
     * 打回说明内容
     */
    private String beatbackContent;
    /**
     * 本次上报时间
     */
    private Date reportTime;
    /**
     * 本次上报审批状态(2-通过 3-打回)
     */
    private Integer reportStatus;

    /**
     * 创建人id
     */
    @AutoFill(klass= SysUtils.class,method = "currentUserId")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    /**
     * 创建人姓名
     */
    @AutoFill(klass= SysUtils.class,method = "currentUserName")
    @TableField(fill = FieldFill.INSERT)
    private String createByName;
    /**
     * 创建时间
     */
    @AutoFill
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 打回状态汉字说明
     */
    @TableField(exist = false)
    private String reportCon;
}
